﻿#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>

//modified on 03.15
//03.16
//

void MyDisplay() {
    glClear(GL_COLOR_BUFFER_BIT);
	glBegin(GL_POLYGON);
	glColor3f(0xff,0,0);
	
        //glVertex3f(-0.5, -0.5, 0.0);
	glVertex3f(-0.5, -0.5, 0.0);
        glVertex3f(0.5, -0.5, 0.0);
        glVertex3f(0.5, 0.5, 0.0);
        glVertex3f(-0.5, 0.5, 0.0);
		
	
	

    glEnd();
    glFlush();
}

int main() {
    glutCreateWindow("OpenGL Drawing Example");
	glutInitWindowPosition(0,0);
    glutDisplayFunc(MyDisplay);
    glutMainLoop();
    return 0;
}
